import {
  ElTooltip,
  ElButton,
  ElForm,
  ElFormItem,
  ElInput,
  ElRadioGroup,
  ElRadioButton,
  ElAvatar,
  ElIcon,
  ElTimeline,
  ElTimelineItem,
  ElCard,
  ElProgress
} from 'element-plus'

import * as ElIcons from '@element-plus/icons'

export default (app) => {
  app
    .use(ElTooltip)
    .use(ElButton)
    .use(ElForm)
    .use(ElFormItem)
    .use(ElInput)
    .use(ElRadioGroup)
    .use(ElRadioButton)
    .use(ElAvatar)
    .use(ElIcon)
    .use(ElTimeline)
    .use(ElTimelineItem)
    .use(ElCard)
    .use(ElProgress)
  
  for(const name in ElIcons) {
    app.component(name, ElIcons[name]) 
  }
}
